package com.company.dcm.service;

import com.company.dcm.entity.Ota;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface OTAService {
    void upload(MultipartFile otaFile, String otaFilePath, String hardwareVersion,String softwareVersion,String productType,String taskid) throws IOException, InterruptedException;

    boolean duplicate(MultipartFile otaFile, String otaFilePath, String hardwareVersion, String softwareVersion, String productType) throws IOException;

    List<Ota> getOTAList(String product_type);

    List<Object> getProductType();

    boolean deleteOta(String otaId);

    boolean updateOta(Integer otaId,MultipartFile otaFile, String otaFilePath, String hardwareVersion,String softwareVersion,String productType) throws IOException;
}
